python fixes

still not working properly
housekeeping