Copy PBB@whtsky's flash_message(py part)