Converted from Python 3 to Python 2
can specify read format