python_cffi: misc improvements

* Add visibility=internal in compiler flags and define a clear API
* Improve pylint messages