Change order state before sending signal; fixed logging.
PEP8