python code for simulation of grain growth using phase field theory