python3 version of bencode