Fix python trying to use default getattr using psutil 0.5.1.

Don't know why adding "None" as second default helps.
Fix error types.