made things more pythonic. cleaned prints