build fix on py2