...
How does the LMS and Studio know about this special file?
Via hard-coding here:
https://github.com/edx/edx-platform/blob/master/common/djangoappslib/xmodule/xmodule/util/sandboxing.py#L5
For all accesses of the file, search for "get_python_lib_zip" in the edx-platform codebase.
...