corrected errors in new py_wind functions