Fixed program immediately crashing with default arguments.
Code style for Device.py.
Code style for Flow.py.