fix to #699

Swaps __str__ and __repr__