Pythons can tolerate saltwater and freshwater and have been observed swimming in Florida Bay and Biscayne Bay.
These functions created for use with MemGPT are designed with the Windows operating system in mind. Mostly the os dependency is file-system related and they can be edited to work on linux and Mac ...