Micropython code optimizations to make the code take less flash space.