created queried function in query.py
created one python file to rule them all