Converting a Abaqus python Macro to Simple python script

"[email protected] [Abaqus]" <[email protected]> 26 Feb 2019 14:12:22 -0800
Newsgroups gmane.comp.mathematics.abaqus.user
Message-ID <[email protected]>
Hi there,
 

 I have  the following abaqus macro which I am using to extract the pressure value for the node.
 With this macro, I have to open every time abaqus cae and run the script but this method is inefficient. 
 Can I convert it to  some python script and run from say Linux console. It would significantly reduce my work stress.
 

 Here is the script, if somebody can help me with this:
 

 # -*- coding: mbcs -*-
 # Do not delete the following import lines
 from abaqus import *
 from abaqusConstants import *
 import __main__
 

 def pressure():
     import section
     import regionToolset
     import displayGroupMdbToolset as dgm
     import part
     import material
     import assembly
     import step
     import interaction
     import load
     import mesh
     import optimization
     import job
     import sketch
     import visualization
     import xyPlot
     import displayGroupOdbToolset as dgo
     import connectorBehavior
     session.mdbData.summary()
     o1 = session.openOdb(
         name='blablabla_location/sphereincube2_main.odb')
     session.viewports['Viewport: 1'].setValues(displayedObject=o1)
     odb = session.odbs['blablabla_location/sphereincube2_main.odb']
     session.fieldReportOptions.setValues(printTotal=OFF, printMinMax=OFF)
     session.writeFieldReport(fileName='pressure.rpt', append=OFF, 
         sortItem='Node Label', odb=odb, step=0, frame=15, outputPosition=NODAL, 
         variable=(('S', INTEGRATION_POINT, ((INVARIANT, 'Pressure'), )), )) 
 

 Any suggestion would be appreciated.
 

 BR,
 Mamun