How to fix OSError: [Errno 22] Invalid argument in Python | DevErrors