Simple class C network scanner in Python