From http://code.activestate.com/recipes/65207-constants-in-python/?in=user-97991