pytest: fix `py` not found error, add selenium

I've fixed a `pkg_resources.DistributionNotFound: py>=1.4.13dev6` error and added selenium as an optional propagated input so people can use the selenium web driver with this.

I've also fixed the `selenium` builder on darwin.

If there's a better way to get this happening, I'm happy to hear it.