how to run gif files in python