import textwrap


def indent(text, prefix='\t'):
    """Indents text with some prefix.

    Indents text with some prefix using textwrap (if Python > 3.3)
    or a custom method.
    :param text: The text to indent
    :type text: str
    :param prefix: The prefix to indent with, defaults to '\t'
    :type prefix: str, optional
    :returns: The indented text by prefix
    :rtype: {str}
    """
    try:
        textwrap.indent
    except AttributeError:  # function wasn't added until Python 3.3
        return ''.join(prefix + line for line in text.splitlines(True))
    else:
        return textwrap.indent(text, prefix)