small python fixes
tweaks