Added bulk of main file

Like I may have said, this is my first time doing something that is not
an exercise.  Not only that, but its not in my native language (Python,
which I've done very little of).  This may not work, and most likely
will not, but anyway, it was fun to make.