fix runtime error from __future__