prototype for automatic general adaptive windows implemented in python. Ready for c++ trials