python fixes