Fixed minor python language discrepancies