Python: added rich comparison and hashing to Vertex and Edge classes