python port of QCamera example