Python script for Button


I want to override buttons in GhPython. I have looked at many C # writing methods, but there are some parts in Python that cannot be implemented. What APIs are worth referring to?