This patch adds "make test" support for pytest, unittest and unittest2.
The pytest part was derived from USES=pytest (D34693). All user-facing variables are kept unchanged. USES=pytest can be simply changed to USE_PYTHON=pytest after this patch lands.