py: Make 3 functions static.