python 3 compatibility

Creates relative imports and changes validation types based on version of python.  Passes tests in python 2.7 and python 3.3.