Fixed errors due to PEP8.
Added test for different fields and array.
Adding dictionary support.
Added selector.py copied from schemav3.