Python virtual pin Read when App is closed

You ought to give some serious thought to using WiFi based devices such as NodeMCUs and running MQTT and Node-Red on your Raspberry Pi.

This would remove your need for the serial connection and the need to use the rather limited Python library for Blynk.

Pete.