python closure sucks