Added missing sort in scheduler.py. Fixes #34.
Removed some forgotten print statement.