Scriptify the pyli script
Add contents/conts/input support