Modified assignment2.py

Added in error checking for the lack of arguments to the script. Also,
refactored out the usage message into it's own function so that multiple
cases could print the usage.