add new function: mealy2moore

to convert any Mealy machine to an almost equivalent Moore machine with outputs shifted at the next reaction.
bugfix: add initial state to Mealy in moore2mealy
fix docstring indentation
shift code