Gavin Andresen - 2012-08-29 23:28:12

Start here maybe:
  https://github.com/gavinandresen/bitcointools/blob/master/deserialize.py#L262