Removed unsupported parameter of open with under Python 2.7