Add SetupPython function for ft=python.