Check permissions on netrc file
The netrc.netrc class from the Python standard library applies access safety checks (requiring that the netrc file is readable only by the current user, and not by group members or other users) only if using the netrc file in the default location (~/.netrc). This subclass applies the same access safety checks regardless of the path to the netrc file.