New to Python and need some help
<p>Good day.</p>

<p>I'm after some help and probably jumping in the deepend here.</p>

<p>I'm trying to write a plugin that will check if services are on or of on a mac os x server. The plugin needs to be written in python and I have manage to create something that will give me result's, but I need some help in finishing it off.</p>

<pre><code>import os
os.system("serveradmin status afp")
os.system("serveradmin status dhcp")
os.system("serveradmin status dirserv")
os.system("serveradmin status dns")
os.system("serveradmin status ftp")
</code></pre>

<p>So if save the following into test.py and then type: python test.py into terminal I get a result back.</p>

<p>The plugin that I am creating requires a class and a run(self) class method that returns a Python dictionary.</p>

<p>This is were I fall down. Could any one point me in the right direction.</p>

<p>Thanks</p>
