API: privatized misc.py, _misc.handle_error_codes, _misc._get_create_dir_error_codes
API: privatized testing.py