fixed distance.py with correct instantiation of motetalk