Basic Python code to record and calculate timesheet