swig python wrapper that can be extended for adding custom fitness functions