Use __str__() instead of dumpInfo() since it's more pythonic.