small fix for python3 compat