fix for #350: remove is_visible() checks on links/text

fixed #350 - removed is_visible() checks on links/text, some pep8 fixes