passing arguments when scheduling a function with asyncio/aiocron
<p>I am using the <code>aiocron</code> library to schedule function calls for certain times of day. This is a minimal example of what I want to do. In this example, I want to send a "good morning" message every day at 8:00</p>

<pre><code>class GoodMorningSayer:        
    @asyncio.coroutine
    def send_message(text):
        #insert fancy networking stuff here        

    @aiocron.crontab("0 8 * * *")
    @asyncio.coroutine
    def say_good_morning():
        yield from self.send_message("good morning!")
        # I don't have self here, so this will produce an error
</code></pre>

<p>Unfortunately, I have no way of getting <code>self</code> in my <code>say_good_morning</code> method, as <code>aiocron</code> obviously does not know or care what class the function it calls is in. This makes aiocron rather useless in my case, which is a shame. Is there any way I can get <code>self</code> in a function called by <code>aiocron</code>?</p>