First code for accept.py, with very basic unit-test