Add bartend.py

Accidentally added to wrong repository in a bad commit