Use f-strings
Avoid unnecessary casts to str()bool()int()
Ensure file closure
Merge nested ifs
Simplify for-assigns-appends with comprehensions and internal functions
Avoid shadowing internal function names
Initialize variables
Return value directly instead of assign then return
Make some methods static
moving the manager should increase startup times
only load it when the user wants to manage networks
network: add ip at the top (fixes#422)
network: always reload the list of networks
wifi: fix network list getting blank
network: make the list more resilient to netinfo errors