added some file checking

Python won't accept files named with ( or ). I added a check that stops
the program, instead of giving an error message, and informs the user
to change the file name.