fix pep8 issues
add apache 2 license