Simple secondary index utilities in Python