change string output to a more pythonic format