Fix PEP8 whitespace errors and redefinition of builtin 'dir'
Fix ImportError on ask_yes_no