remove extra newlines from python files

Remove all of the ending newlines at the end of the file, since this is
apparently against pep8.