This is inspired by the themed magnetic poetry sets you can buy on Etsy. Examples abound: http://www.etsy.com/search?q=magnetic%20poetry
Prepositions: https://en.wikipedia.org/wiki/List_of_English_prepositions
Tests are written with PyUnit. Given that they aren't run automatically, they're probably pretty likely to fail at any given time.
$ python test.py