remove pypy from envlist
use a contextmanager for cursor