Using Django timezone instead of Python datetime
Simplifying nested if's