Update distress_API.py

Integrated with the Receipt class and cmsg wrapper, added receive and delete functions.
Made internal functions private. Refactoring needed.