Memory Leak Fix

MDDE Memory leak fix with just the python separated from XBMC.