py: Change inline to static inline for 2 functions.