This is what I get:
Code:
calibre-debug -c "from calibre.ebooks.metadata.sources.base import Source; s = Source(None); print list(s.get_author_tokens(['J. R. R. Tolkien']))"
['Tolkien']
Don't worry about the None it's meaningless (see customize.__init__ for the None)