Generate and print a spiral of natural numbers up to N with fully configurable shape and spacing.
Examples:
$ python3 spiral.py 50 square 2
32 31 30 29 28 27 26 25
33 24