fix several bug from pep8 style adaptation
fix bug with load stream from another project