hook system style SNK

Hi … I would like to know a way to make a hook system like shingeki no kyojin. (in Phyton)
because I tried with the logical blocks and because of the linear speed does not work …ll.blend (489 KB)

Can you provide more info and maybe a video?

that when the player presses Q the left hook shoots, and with E the right hook. When the hook collides with a wall it hooks and retract. and that when one presses Shitf the person increases his speed.
something similar to the game attack on titan.