Changed voting to dict with __getitem__ and __setitem__ along with updates to FlaskAPI