fix python2.6 dependence
add all_to_dicts unitest