This can be condensed to:
return self.unit_lookup.get(relativepath, None)