source code for the tide windows program, written in Python