Added support for AutoField

Only adding a filter for AutoField when explicitly specified in fields.
Fixing AutoField for Python 3
Merge branch 'tmp' into develop