Change to py/misc.h to allow C++ code to be used (for Teensy 3.1)