The backend API, written in python