Python tinyurl tool