fix indentation
add required newlines
disable pylint message about unused variable 'fig'
remove redundant backslash