Update hydrobide.py

added write to file code at the end -KL