Make semantic_version.py usable outside of GAE

Take this if you like, not a big deal. Otherwise I will keep a patch file that I apply on updates.

BUG=
R=nweiz@google.com

Review URL: https://chromiumcodereview.appspot.com//557683002