Added Python script, fix test and controller