'Provide intelligent behavoir for Shift+Tab key press'

def intelligent_backtab(self):

    leading_text = self.get_text('sol', 'cursor')
    if (not leading_text.strip()):
        self.unindent()
    elif self.in_comment_or_string():
        self.unindent()
    elif ((leading_text[(-1)] in '(,') or leading_text.endswith(',    ')):
        position = self.get_position('cursor')
        self.show_object_info(position)
    else:
        self.unindent()
