[python] In Python, is there an elegant way to print a list in a custom format without explicit looping?