final python fixes