fix up python stuff