Kth Smallest Element In Array In Python