Some minor python changes