implemented fusion based inference python wrapper and fixed minor bugs