update snakefile, add tasks.py

+ resolve test issue (py3)