How To Check Empty Object In Python