Code in pyhton to show camera streaming in a web page and taking a snapshot without blocking or freezing