conversion of python datetime to $ TIME
mostly gets things working in python