Used numpy empty and fill in place of list, corrected pep8