Add setup.py and various tests for "python setup.py check"

The tests include checking for copyright years and license headers
as well as PEP8 and PEP257 coding style violations.