no need for the brackets in Python

    if power_button.get_attribute('data-enabled') == 'true':

Otherwise, looks good to me.