Add frame_nslots() to factorize duplicate code.
Miscellaneous source files for the main Python shared library