The python code reads the alert file off the server which always will exist. The Arduino code is printing parts of the string "sendVal" with the following code:
But, you assume that the serial data will immediately be available to python to read. I'm afraid that you don't understand how ssslllooowwww serial data transmission can be, and the fact that it is not synchronous.