added py utilities