refactoring names to use python code_guidelines

changed to use [1:-1] instead of strip()
added limit to the main (discover) method