cleaned up python source