Smarter technology is turning deadly venom into potential medicine