Added patch for apscheduler