Creating pins is a pain. Amazingly, there are no convenient functions to automate the placement of arrays of pins.
PyPin is a library of functions to create single pins and arrays of pins.
user_pin_script is a sample user script that would be called by Make as part of the flow.