def p_funcdef(p):
 p[0] = ast.Function(None, p[2], tuple(p[3]), (), 0, None, p[5])

def p_funcdef ( p ) : p [ 0 ] = ast . Function ( None , p [ 2 ] , tuple ( p [ 3 ] ) , ( ) , 0 , None , p [ 5 ] )
funcdef : def name parameters colon suite .