Drop support for 2.7 and add support for 3.1