Step 1: Use complex numbers:
The angle $\tan^{-1}\frac{q}{p}$ is the argument of $p + iq$ when $p > 0$. So $\tan^{-1}\frac13 = \arg(3+i)$ and $\tan^{-1}\frac17 = \arg(7+i)$. Arguments add when we multiply complex numbers.
Step 2: Multiply:
The required angle is $\arg\big[(3+i)^2(7+i)\big]$. First,
\[ (3+i)^2 = 9 + 6i + i^2 = 8 + 6i \]
Then
\[ (8+6i)(7+i) = 56 + 8i + 42i + 6i^2 = 50 + 50i \]
Step 3: Find the argument:
The number $50 + 50i$ has equal real and imaginary parts and lies in the first quadrant. Its argument is $\tan^{-1}\frac{50}{50} = \frac{\pi}{4}$.
The sum of the three angles is $2(0.3217) + 0.1419 = 0.7854$ radians, which is below $\frac{\pi}{2}$. So the argument has no extra multiple of $2\pi$ hiding in it.
Final Answer:
The value is $\frac{\pi}{4}$.
\[ \boxed{\frac{\pi}{4}} \]