Default refresh to True (yumpkg5) + pep8 fixes

See #3302
Default refresh to True (zypper) + pep8 fixes

See #3302
Prevent traceback using refresh param

This commit forces the 'refresh' param to be cast as a string to keep
things like 'refresh: 123' from causing a TypeError.