Format code to PEP8
add pre and post action during create task