fixing python issues