minimize number of calls to cygpath in the python wrapper