don't use cmp in event_search_tree.py
replace cmpVersion with versionLessThan
cal_types: division fix (py3 compat), floor and ciel and some cleaning
weekcal.py: less duplicate code by adding getContext method
event_lib: don't exit if failed to load info.json
timeline_box.py: don't use cmp