[py] test some functions