Add a state machine copy() method

In order to move the states.py constants to a state machine
object we need to be able to copy that object that will be
defined there so that it can be used by those states users.

Change-Id: I5fc21370d91ff578bd21c74f4bd7b8c0e130b144
Merge "Add a state machine copy() method"