Updating to Python3 - file() -> open()
Updating to Python3 - StandardError -> (TypeError, ValueError)