The code uses defaults which are ints (0 or 100), but the values retrieved from the XML are strings. I think it would be more useful to return the value as a float.
The documentation is vague and says the value is "percentage of job processed.", this change should probably be updated to mention the type.
nmap 7.01 + python-libnmap 0.6.1