python simple restful api client