pythonizing to maximize OS X compatibility
finished parameterizing track priority criteria