more python fixes