def stateclass( statemachineclass ):
   """A method that returns a metaclass for constructing states of the
   users state machine class
   """
   global _bcType
   _bcType = statemachineclass
   return _stateclass
A method that returns a metaclass for constructing states of the
   users state machine class
   
recipes/Python/576613_Easy_State_Pattern__support_implementing_state/recipe-576613.py