Fix import_string masking of AttributeError

Fix #182