Make `salt.modules.xapi` python 2.6 compliant.

PEP-8 and formatting fixes.
Merge pull request #5305 from s0undt3ch/hotfix/xapi-python26

Make `salt.modules.xapi` python 2.6 compliant.