human
Complete this python program:
def keywords(func):
assistant
#Here is the Python program you requested.

    """Get the argument names of a function
    >>> def f(x, y=2):
    ...     pass
    >>> keywords(f)
    [\x\, \y\]
    Notes
    Taken from odo.utils
    """
    if isinstance(func, type):
        return keywords(func.__init__)
    elif isinstance(func, partial):
        return keywords(func.func)
    return inspect.getargspec(func).args