python bug fixed