Python port of Groupon's locality-uuid(.rb) (https://github.com/groupon/locality-uuid.rb)