Detached Wi-Fi API calls from init and created a separate file called 'network.py'.