Fix some smaller Python issues