Fork of: https://bitbucket.org/safl/pytochpl/