[PATCH 06/13] python: Apply pypath_converter to write_lockspace API