When pywikibot/config.py creates a ~/.pywikibot folder, it does so with mode 0600, whereas it should be 0700.
On line 350) it is doing
os.makedirs(dir_s, mode=private_files_permission)
with private_files_permission defined on line 255 as
private_files_permission = stat.S_IRUSR | stat.S_IWUSR
These make sense for _files_ permissions, but for a folder it should include stat.S_IXUSR (+x) as well
I suppose it would probably need a line
private_directories_permission = stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR
used for this