def get_csv_reader(csvfile, dialect=csv.excel, encoding="utf-8", **kwds):
    """Returns csv reader."""
    try:
        # pylint: disable=pointless-statement
        unicode
        return UnicodeReader(csvfile, dialect=dialect, encoding=encoding, **kwds)
    except NameError:
        return csv.reader(csvfile, dialect=dialect, **kwds)