Python bindings - fix creation of new xml files