C Programming Array Problems In Python