feedback.py allowed to run in Python 3, algorithms revised