fixed error codes, and renamed to swait without .py extnsn