fix autorefresh flag in pysolv, support metadata_expire == -1 like in solv.c