pymgcv provides a Python interface to R's powerful mgcv library for fitting Generalized Additive Models (GAMs).
All the information and examples you need are in the documentation:
If you like the project, please consider giving it a star on github!