Add support for multiple methods in Python stubs