Initial conversion to code based on pycco.

Pycco is MIT licensed and its copyright is owned by
Nick Fitzgerald. See https://github.com/fitzgen/pycco/blob/master/LICENSE.