dxpy windows compatibility improvements