Built In Function Or Method Is Not Subscriptable Python