Corrections to style and some python code style.