Fix compilation warnings with recent Python versions.
Add tests runner.