Drop support for 3.7 and fix tests (#356)

16 files changed