reformat PEP-8
"if dict.has_key(key):" deprecated - use "if key in dict:"
* Porting tests from the original
* Some refactoring at coordinatesystems.py, coordinate systems are objects now instead
   of dicts