Changed def int/str to atoms.
Pulled the argument parsing into its own function.

It will force an early exit if the user doesn't define a -i (there's no
input file).
Catches I/O Exceptions, prints exception.

I mean, yeah, just dumping the exceptions out there isn't great but this
is a tool for my personal use. I can deal.
Reformatting main.