Python Http Server Rest Api Definition