Fixed python3 compatibility issues in jenkinsapi module.