Add Python template
Close file in Python template