Changed bard.py to meet the interface spec.