You can use os.path.exists function:
import os.path
os.path.exists(file_path)
For both files and directories this will return True , Alternatively you can also use the following command to test a file specifically and it follows a symlinks.
os.path.isfile(file_path)