i am converting a code in unix and i found "RCODE=$?" in the code for exit status. how to write this in pyspark