corrected ParseTupleusage and return statements