[{'ending_time': '5pm', 'starting_time': '10am', 'weekday_name': 'monday'},
    {'ending_time': '9pm', 'starting_time': '6pm', 'weekday_name': 'monday'
    }, {'ending_time': '5pm', 'starting_time': '10am', 'weekday_name':
    'tuesday'}, {'ending_time': '9pm', 'starting_time': '8am',
    'weekday_name': 'sunday'}, {'ending_time': '1pm', 'starting_time':
    '10am', 'weekday_name': 'sunday'}, {'ending_time': '8pm',
    'starting_time': '6pm', 'weekday_name': 'sunday'}]
python algorithm to be done in a pythonic fashion?