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

    def connect_to_postgres():
        try:
            return connect(host=host, user=u'postgres', port=port, database=database)
        except (InterfaceError, ProgrammingError) as e:
            Message.new(message_type=u'acceptance:integration:postgres_connect', exception=unicode(e.__class__), reason=unicode(e)).write()
            return False
    d = loop_until(reactor, connect_to_postgres)
    return d

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

def get_postgres_connection(host, port, database=None):