Warning, this commit is in a broken state. The em_test.py doesn't works yet because it uses old relation handler (that doesn't exists anymore). The pickle file in example is broken too