import ast


def _handle_generic_type_args(val):
    """Evaluates a string containing a Python literal

    Seeing a list and tuple types will come in as string literal format, use ast to get the actual type

    *Args*:

        val: string literal

    *Returns*:

        the underlying string literal type

    """
    return ast.literal_eval(val)