Correct plugin to work with ST3.

Replace requests library with standard libraries.
Replace threading logic with direct calls.

Signed-off-by: Baptiste Millou <baptiste@smoothie-creative.com>