Wrap pythonrc.py logic in a setup()` function to prevent leaking variables
#25651
+78
−80