First tests - tag registration
Fixed tag.delete - checking act is not None after cycle
python2 compatibility
Tag encoding inlined to _iterencode