Fix: TypeError: unorderable types: Spec() < Spec()
Add Python 3 compatible imports.
Drop Python 3.3 support.
Change strings to use single-quotes.
Fix various Python 3 related bugs.
Make imports more explicit at the top of the file.