Jia rework -- pycode

Summary: It's functional but I'm going to do some styling etc.{F11392}

Reviewers: marcua

Reviewed By: marcua

Differential Revision: http://phabricator.locu.com/D5718