Python: setup.py refinements when the C core is built automatically