An exercise in parsing bittorrent files (bdecode) in Python that I did for an interview