[closed #12] suport for py3 and py2