Is there a function in python which returns the Amplitude/Sound Pressure Level of a sound file(like .wav) file?
No, you need to know the full Transfer function from the acoustic response at the sensors face to your A/D converter.  Transducer responses vary with frequency. You need a calibrated reference at a minimum.  

A reference sensor will have a response curve from the manufacturer.  An average would be useful as well.