* Removing cmp to be compatible with Python3 * fix syntax * Added an overlooked return * Fixing making things overly complicated * Simplifying since tags will always be hashable. Don't need to use cmp at all.