python: adapt evaluation methods for python interface
(needed also some refactoring in cbindings and optimization)