closing and square are not used; maybe run pyflakes on the script to make sure irrelevant variables are removed?