Python class was added into method spec behavior.