Gentoo management utility in python