core/network.py: Order imports

According to PEP8, in the order:
1. Standard library imports
2. Related third party imports
3. Local application/library specific imports