Select Query In Python A Namespace