added py script for hook