Clean core in templatetags core.py library