Fix API changes to apscheduler.