Update main.py

根据apscheduler3.3.0版本做了相应的修改
Merge pull request #15 from figot/master

Update main.py