Fix #310 and add tests to detect the bug
Automatic style corrections courtesy of autopep8.
Merge pull request #323 from francisco-dlp/BUG_FIX_fetch_only_fixed

Bug fix fetch only fixed