util.py: Add surftab support