Python REST mock