make python unit tests work for all operating systems