Since the new PeeringDB policy, the API call managment was modified (see here : https://docs.peeringdb.com/howto/api_keys/ )
Every session have a rate limit of 50~60s, so it's impossible to use Pear normally now.
I suggest to use peeringdb python package which offer a local copy of peeringDB as proposed here : http://peeringdb.github.io/peeringdb-py/
note : It is important to do regularly database sync with peeringdb sync.