 I am fairly sure there's a much better way to do these things... some way more pythonic.  I've seen some examples of people replacing switch statements with dicts and lambda functions, while other people simply recommended if..else nests.  