Made use of collections module. More pythonic
Made a module of class geometrical primitives and introduced Point() namedtuple