Python implementation of a netstring parser.