Statistical Methods Using Python Dictionaries Multiple Keys