add a couple utils for python