import pickle

state = pickle.loads(open("torrents.state").read())

for t in state.torrents:
    for attr in dir(t):
        if attr[1] != "_":
            print attr + ": ", getattr(t, attr)

