py_config function

Python configuration