updated to 1.5x support; drops 1.4 and older support; improved pep8