Use pytest instead of nose since it has a better ecosystem and will allow us to write pytest-style tests in the future.