A sorted dict implementation for Python