Complete Guide to Python: Fundamentals, Automation, OS Interaction, Multithreading, and Optimization Strategies