def p_imports(self, p):
        """imports : imports import
                   | import"""
        n = len(p)
        if n == 3:
            p[0] = p[1] + [p[2]]
        elif n == 2:
            p[0] = [p[1]]
def p_imports(self, p):
        """imports : imports import
                   | import"""
        n = len(p)
        if n == 3:
            p[0] = p[1] + [p[2]]
        elif n == 2:
            p[0] = [p[1]]
def p_imports ( self , p ) : n = len ( p ) if n == 3 : p [ 0 ] = p [ 1 ] + [ p [ 2 ] ] elif n == 2 : p [ 0 ] = [ p [ 1 ] ]
imports : imports import
                   | import
imports : imports import | import