Make changes in python scripts of addons effective I am using blender with an addon called blensor. I have some trouble with this addon and would like to alter its code at some place to see the effect my changes made. 
Here is a working procedure:


Edit the appropriate python file of the addon in a text editor and save.
Restart blender
Change is visible when running addon


This however is quite tidious for debugging. It would be nice to be able to reload the addon without having to restart blender. I did some research and tried to following, with no success:


Pressing F8 within blender. Looking at the console I can see that blensor seems to be reloaded but the changes I made are not visible when running it. Maybe the output "addon_utils.disable: cycles not disabled" in the system console means something?
Opening the python script in blender's text editor, changing and saving it and clicking Text -> Reload. Does not seem to have any effect.


Any other ways or idea what I am missing?
I am the author of the blensor addon.

I used the tip from CoDEmanX and just implemented the reload functionality in the blensor module.

If you have an older blensor version and don't want to compile it from source you can manually add it by changing the file &#95;&#95;init&#95;&#95;.py

Everything above &#95;&#95;version&#95;&#95; has to be changed to

import sys
import traceback
from mathutils import Matrix
from math import pi
import types
import bpy

import blensor.blendodyne
import blensor.depthmap
import blensor.tof
import blensor.evd
import blensor.ibeo
import blensor.generic_lidar
import blensor.kinect
import blensor.exportmotion
import blensor.mesh_utils
import blensor.noise

"""If the blensor module is reloaded, reload all submodules as well
   This will reload all modules at the initial import as well but 
   that should not be a problem
"""
import imp
locals_copy = dict(locals())
for var in locals_copy:
    tmp = locals_copy[var]
    if isinstance(tmp, types.ModuleType) and tmp.__package__ == "blensor":
      print ("Reloading: %s"%(var))
      imp.reload(tmp)


After that hitting F8 should reload the submodules as well.