chmod +x makes it executable. Also, at this point just use a trainer

a trainer takes more work and substantially worse security. i can code review 40 lines of shell+python at a glance cannot say the same for most general purpose trainers