Removed heap from python sorting