Fixed some bad variable names and cleared up code.
Bugfix: typo crashed mido.portmidi on import.