Making the code backward compatible to handle HRIT

Signed-off-by: Adam Dybbroe <adam.dybbroe@smhi.se>
pep8

Signed-off-by: Adam Dybbroe <adam.dybbroe@smhi.se>