Cmodel import priors
ported python code, foo and noise