def keys(obj):
    """
    Returns an array of strings of the keys like Python 2 used to do.

    .. versionadded:: 1.4

    Parameters
    ----------

    obj : object
        Object to get keys from.

    Returns
    -------
    
    keys : list
        List of keys.
    """
    return [key for key in obj.keys()]