Wrap program logic in function, make script only execute...

if run as main. This makes it testable!
Add basic unit test for script functionality...

Note - it's currently FAILING!
Use line.startswith() rather than explicit string indeces...

that were causing script to fail if run with blank lines
Add .gitignore
Strip whitespace from each line as a sanitation, and don't process empty lines
Fix illegal keyword in comment processing line
Remove unnecessary line stripping...

now that we strip whitespace from each line
Remove unused variable
Abstract out processing of key-value pairs

Note the use of tuple unpacking!
Tidy processing of track information...

More tuple unpacking!
change all the tabs to spaces to avoid confusing myself
Fix elif & test import directive