Added pypy3 to the build matrix

Also used travis_retry when using pip in order to avoid build failures due to network problems.