Nice find, I commented on your blog a method you can use to extend this vulnerability into RCE without admin interactivity.
I have a feeling that only works on python2 because of absolute imports on python3.
However, you're right that overwriting the source is a possible attack vector.
thanks for commenting!
I had cronjobs in mind, but as you said, they are not writeable.
I also thought about uploading a .py file with an import's name, but wouldn't that require a __init__.py (in a subdirectory?) to be regarded as a valid module/import by python?