URIRef objects in RDFLib are unicode objects and have all of the unicode object methods, like split. The following will work if all of your class names are separated from the namespace with a '#'.
resource = URIRef('http://test.com/domainOnt/email#plans@plan.com')
print resource.split('#')[-1]
This question and answer is quite similar to yours.