I have tested lockfile-0.12.2-r1 and it under python3.7 and it works. The tracker for python 3.7 is Bug #695996. Reproducible: Always
Fixed in 736780250b852b68a90bf373aeae28288a336a51