To do exactly what you asked:
You're going to want to look at the os.path.isfile() function, and then the open()
function (passing your variable as the argument).
However, as noted by @LukasGraf, this is generally considered less than ideal because it introduces a race condition if something else were you create the file in the time between when you check to see if it exists and when you go to open it.
Instead, the usual preferred method is to just try and open it, and catch the exception that's generated if you can't:
try:
my_file = open(file_name)
except IOError:
# file couldn't be opened, perhaps you need to create it