file() do no longer exists in python3