Fixes py3 incompatibility and typo in bar names.