def is_pep8_available():
 try:
  import pep8
  if (not hasattr(pep8, 'BaseReport')):
   raise ImportError()
  return True
 except ImportError:
  return False

def is_pep8_available ( ) : try : import pep8 if ( not hasattr ( pep8 , 'BaseReport' ) ) : raise ImportError ( ) return True except ImportError : return False
checks if pep8 is availalbe .