Picaxe code for straight line, square, and a trick, as well as Python code that generates the instructions