Code cleanup, created a utils file in splunklib/modularinput