helper, returns the name of an attribute (without namespace prefix)

def _field_name_from_uri(self, uri):
        """helper, returns the name of an attribute (without namespace prefix)
        """
        # TODO - should use graph API
        uri = str(uri)
        parts = uri.split('#')
        if len(parts) == 1:
            return uri.split('/')[-1] or uri
        return parts[-1]