Keep track order chronological in globals.py
Fix warning from MPL
Fix syntax errors
Change argument order
Add track-specific layer depths
Remove cruft
Fix long lines
Remove more cruft
Fix more long lines