Remap logging.error and warning to elog.complain

The Python bindings do not actually expose elog_error and elog_warning
to us, nor does the underlying _elog binding. Thus we are forced to map
everything higher than logging.info to elog.complain