Check whether a path is valid in Python without creating a file at the path's target Check whether a path is valid in Python without creating a file at the path's target python python