Make metaclasses usable on PY2 and PY3
Reorganize import statements and make BaseButton PY3 compat
Merge pull request #3272 from mmarzantowicz/feature/toolbar_py3_compat

Fixed metaclass support in Python 3