some python code from a while ago

some python code which I made a while ago. Should be useful to breakdown
the .data files.