how to check blender version a file was made in python code example
Example: blender show python version
import sys
print(sys.version_info)
# sys.version_info(major=3, minor=4, micro=2, releaselevel='final', serial=0)
print(sys.version_info.major)
# 3