compat_asn1: backport to python3.7
The forge pipelines use python3.7, so adapt: - Don't use the := walrus (added in python3.8) - Use the older typing syntax (not the changes in python3.9)
The forge pipelines use python3.7, so adapt: - Don't use the := walrus (added in python3.8) - Use the older typing syntax (not the changes in python3.9)