Layout a simple fence line?

This Python code may help: