Added Python script with SymPy