I'm not sure this actually updates the value in the original module where this is imported from (ints are immutable objects in Python).  Perhaps better to have a singleton class somewhere with methods to get/set the value.