DEFAULT_LOCALE_ENCODING and strings_only set to boolean True and p.returncode. define the function handle_extensions with 2 arguments: extensions set to tuple containing string 'html' and ignored set to tuple containing string 'py'.
def handle_extensions ( extensions = ( 'html' , ) , ignored = ( 'py' , ) ) :