updated to use new bootstrap-datetimepicker and for Python 3.x compatibility