py3 compatibility for cdpackage