update for python compat