Replace dict has_key method to key in dict, has_key is deprecated in python3 and should be eventually replaced in python2.7
Resolve conflicts after merging with python3 branch
fix not in statement
Bug fixes to deal with records keyword
Merge branch 'merge_python3' which includes removes has_key dict call since it is not supported in future python version.