add testing for base chart
add py2/py3 compat module
improved docstrings in utils