Pythons can tolerate saltwater and freshwater and have been observed swimming in Florida Bay and Biscayne Bay.
It's fair to say when a Brisbane resident woke up to discover a carpet python curled up on top of her, she was rattled.