Make xbbtools imports work on Python 2 and 3