file is not available anymore in Python 3, using codecs.open to avoid recursion with screedopen.open function.