Fix construct.py python 2 compatibility