bdecode helper, bencode, docstrings