Example based on 'Pointless Python CGI server' working RasPi