remove extraneous space
rejig pyclass cache lookups to make sure they are always done