Technically, you can open up Python classes:
class Test(object):
pass
t = Test()
def test(self):
print('ehlo')
Test.test = test
t.test()
This is rarely done in practice, however (at least, as far as I can tell)