def ex_literal(val):
 if (val is None):
  return ast.Name('None', ast.Load())
 elif isinstance(val, six.integer_types):
  return ast.Num(val)
 elif isinstance(val, bool):
  return ast.Name(bytes(val), ast.Load())
 elif isinstance(val, six.string_types):
  return ast.Str(val)
 raise TypeError(u'no literal for {0}'.format(type(val)))

def ex_literal ( val ) : if ( val is None ) : return ast . Name ( 'None' , ast . Load ( ) ) elif isinstance ( val , six . integer_types ) : return ast . Num ( val ) elif isinstance ( val , bool ) : return ast . Name ( bytes ( val ) , ast . Load ( ) ) elif isinstance ( val , six . string_types ) : return ast . Str ( val ) raise TypeError ( u'no literal for {0}' . format ( type ( val ) ) )
an int .