An increasing number of tools are able to display file sizes in a "human" format with appropriate numerical units. It would be handy to have a command-line tool for doing this to fields in data, so that you could execute commands like:
du | sort -n | humanise -f1
Similarly, a Python module would be useful.
Jeremy Mates has already done this: see human.pl.