update build matrix and python 3 bugs