'Returns the name of a method
Args:
section: A section of parsed HTML that represents a method definition
Returns:
The method name'

def parse_for_method_name(self, section):

    method_name_h4 = section.find('h4', {'class': 'methodTitle'})
    if method_name_h4:
        method_name = method_name_h4.next.next
        nbr_of_methodType_tags_in_h4 = len(method_name_h4.find_all('span', {'class': 'methodType'}))
        if (nbr_of_methodType_tags_in_h4 > 1):
            method_name = method_name_h4.find('span', {'class': 'methodType'}).next.next
        return method_name
