replace unicode with text_type
test__subprocess.py: do not reference 'file' (PY3)