N Queens Problem Implementation In Python