added preliminary flash protocol to protocol.py