Updated syntax for python 3, but created a bug that draws each column offset vertically