Don't load remote plugins in non-remote modes

Updating Python code to avoid loading plugins are remote when not in a
remote connection. This is essential to avoid Catalyst failures when
loading plugins in static builds without explicitly overriding the
`remote` argument. Now, `remote` is ignored and treated as `False`
unless the connection is a remote connection.
8 jobs for static-plugin-fixes
Status Name Job ID Coverage
  External
passed cdash-commit

passed ghostflow-branch-check-master

passed ghostflow-branch-check-release

passed cdash-commit

passed cdash-commit

passed cdash-commit

passed cdash-commit

passed ghostflow-branch-check-master