Support for sci-libs/teem and media-gfx/ogdf

You should use the python which you get from the ebuild. So use ${PYTHON} instead of python2.7