updated task.py and created dates.py to work with dates