Rewrite of Rasbcontrol with Flask and Python