Code from my PyCon Ireland talk