def _stringify_args(args):
 new_args = []
 for item in args:
  if isinstance(item, (int, long)):
   new_args.append(('%#lx' % item))
  else:
   new_args.append(str(item))
 return new_args

def _stringify_args ( args ) : new_args = [ ] for item in args : if isinstance ( item , ( int , long ) ) : new_args . append ( ( '%#lx' % item ) ) else : new_args . append ( str ( item ) ) return new_args
converts each argument into a string .