Some python and bash shell for automatic operation