Python reimplementation of some pieces of Pedro Felzenszwalb's DPM package.