Set framerate via python