copy import_attribute from rq.utils