Updated generating shakes table for realtime and its test. Updated shake_event with PEP8 and pylint compliance while reading the code.