In general, try to use explicit matching and keep it flat instead of nested if/then's. For example if I had used `if platform.system != 'Darwin'` below, you would have to modify a bunch of locations elsewhere.

Rather, just use `if platform.system() == 'Windows': # do windows stuff'. Right now where you check for Windows and Windows-specific code is far from each other.