In Python you can do this much cleaner like this:
```
if comp > schedule.time_to_run > now:
```