unit tests on py2.4 pass except calendar issue
fix calendar py2.4 issue
get rid of py2.7 optparse in external