Lists the context types available in an index

def list_types(index_name, host='localhost',port='9200'):
        '''
        Lists the context types available in an index
        '''
        return ElasticSearch(host=host, port=port).type_list(index_name)