Updated Python module wrapper for Windows compatibility