Adding better REST interfacets for the python server