Create distress_API.py

Functions aren't perfect yet, but function signatures shouldn't change much.