fix pylint warnings in 7.0 branch

renamed datetime (variable) to datetime_ to not shadow the datetime module

renamed fields to field_list for the same reason, and id to id_ too. 

used relative imports