Python starts camera

and some refactoring