Do not use construct not compatible with python 2.4, fix #5006