Adds api.py to support API server registration