Termux write to SD card Android 5

Termux 0.54

Not rooted, no wish to

$ pwd
/storage/sdcard1
$ id
uid=10096(u0_a96) gid=10096(u0_a96) groups=1015(sdcard_rw),1028(sdcard_r),3003(inet),9997(everybody),50096(all_a96)
$ ls -l python
total 0
$ ls -dl python
drwxrwx---    2 root     sdcard_r     32768 Sep 23 22:10 python


So according to permissions, I should be able to write to the python folder. But creating a file gives permission denied.

I have seen the platform.xml solution but can't edit the file.

I would like to write to card then easy to move card and files between machines.

Regards
John
Use termux-setup-storage to setup your storage. 
See https://wiki.termux.com/wiki/Termux-setup-storage for instructions and more information.  Write data will be enabled in the Termux private folder on external storage through ~/storage/external which is a link to Android/data/com.termux/files/ on your external SD card.