def METHOD_NAME(*args, **kwargs):
    fp = kwargs.pop("file", sys.stdout)
    if fp is None:
        return
    for arg in enumerate(args):
        if not isinstance(arg, basestring):
            arg = str(arg)
        fp.write(arg)