https://pypi.python.org/pypi/jw.emerge_update
If you didn't know, there is quite the fancy python script hidden in pip/Pypy for updates.
I'm in the midst of writing a python script that can detect what is going and update accordingly. I'll post it when I've completed it. Hopefully soon.