minor python changes