making occbuild work on python2 and python3