Heapy is quite simple to use. At some point in your code, you have to write the following:
from guppy import hpy
h = hpy()print h.heap()
This gives you some output like this:
Partition of a set of 132527 objects.Total size =8301532 bytes.IndexCount%Size%Cumulative%Kind(class/ dict of class)03514427214041226214041226 str
13839729130902016344943242 tuple
253007398569418928850 dict (no owner)