[#1452] Fix PEP8
Merge pull request #1458 from okfn/1452-textpreview-tests

[#1452] Text Preview fails - Fix PEP8