N Queen Problem In Python