fix licence headers
consistently update links in license header
minor pep8 fixes