python 2.7 compatibility changes
added part of google calendar sync code and some other changes