Minor python fixes.