add tests suite to setup.py
extract python reference implementation in his own module