chg: autopep8, updated tests, fixed permissions of files