moved import statement to be more pythonic
changed input to avoid keyword
Change variable names and factor out adding and multiplying

Change variable slicing to named variables rator and rand.  Also factor out variatic functions.
Factored out most functions
Changed logic flow for function handling
Gotta catch 'em all
Use with() syntax to enforce file closing
Merge pull request #1 from akaptur/code-review

Code review