Some bug fixes in tracks.py

Should run now!

	modified:   tracks.py