fixed many littel errors and autopep8