Feature #16: Refactor valid peps endpoint

Extract valid peps endpoint into a helper function
Feature #16: Turn all_peps into generator function
Feature #16: Valid pep number for get_pep request
Feature #16: Remove unused variable
Merge branch 'feature-16' into dev - Fix #16