How to fix OSError: [Errno 24] Too many open files in Python | DevErrors