Fix:
    Changing variable `file` to `pathName`.
    Using os.path.join instead of using the `+` operator.