migrating away from timedelta.total_seconds() which is Python 2.7+
Merge branch 'python26_cleanup' into control_panel
combine general functions to one file. Test UserLog functionality on new datediff function.