python: allow specifying save open