Back end of Equiclass, Python flask app