http://www.gentoo.org/proj/en/Python/developersguide.xml Please use PYTHON_DEPEND="2:2.4" and python_mod_optimize
Fixed in 1.0.0-r1, thanks.