Fix python 2.6-3.3 compatibility by factoring total_seconds()
implementation out to separate module and adding new datatype method
to remove all numpy types before returning values from the backend.