head.py missing brackets