human
Here's a good function header given the following:
I wrote the below code

    if (io_loop is None):
        io_loop = IOLoop.current()
    def accept_handler(fd, events):
        for i in xrange(_DEFAULT_BACKLOG):
            try:
                (connection, address) = sock.accept()
            except socket.error as e:
                if (errno_from_exception(e) in _ERRNO_WOULDBLOCK):
                    return
                if (errno_from_exception(e) == errno.ECONNABORTED):
                    continue
                raise
            callback(connection, address)
    io_loop.add_handler(sock, accept_handler, IOLoop.READ)

What's a good function header?
assistant
#Here's a good function header.

def add_accept_handler(sock, callback, io_loop=None):