def get_magic_name(value):
return str(value) if six.PY2 else value<EOL>
Return value suitable for __name__ attribute.

For python2, __name__ must be str, while for python3 it must be unicode (as there are no str at all).

Arguments:
    value basestring: string to "convert"

Returns:
    str or unicode