extract method for python binding model