Time Range Python Function Parameters With Types Of Objects