autopep8 the code + <span> cleaning