How To Check Array Length In Python