Update buttons.py

<type 'exceptions.AttributeError'> 'dict' object has no attribute 'is_mobile'"