functools.cache
Renames the files to pythonic file names. Also replaces the bespoke caching function with the functools caching function which is functionally equivalent. --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com>