a demo based on pyrestful+motor+tornado