code review changes - Use reprlib module when it makes sense. @brianr