Update repogen.py
Fix paths, follow pep standards, use context mangers, use in statements rather than ==, use fstrings instead of formatters and remove python 2.7 style string concatenation
Fix paths, follow pep standards, use context mangers, use in statements rather than ==, use fstrings instead of formatters and remove python 2.7 style string concatenation