Cleaned node removal method and fixed consistency bug.
Python has no semi-decent built-in priority queue. wat.