fix flake8 and get_chunck