basic py3.3 compatibility while keeping py2.7 compatibility

- explicit declare decoding (utf-8)

remove unnecessary list statement

proposal on @dangra's idea to solve the range, xrange problem