From http://stackoverflow.com/questions/82831/how-do-i-check-if-a-file-exists-using-python?rq=1