Refactoring and threat_recon_request consistency

Refactoring and cleanup of methods; move into api.py and query.py
Make threat_recon_request consistent with new methods / simple_query
Logic optimizations in threat_recon_request
PEP-8 cleanup