added qualifier to __sanitize() function in python template