P14, P151, P169, P178: Simplified Python solutions by removing unused imports (due to commit d70fbdf0).