ultimaker2mqtt connecting our 3D printer to our MQTT broker originally written by Ranlvor.# Converted to python3