Python: fixed make_writable.