Moved netctl calls out of main.py

not sure why, but meh! we'll probably want to just move these functions into
main.py as some point. There's really no reason for them to be external!