more len() to size() changes for pyspuc extensions