I get the error E501: line too long from this code:
E501: line too long
header, response = client.request(\'https://api.twitter.com/1.1/statuses /user_timeline.js
You could build the string on multiple lines:
st='https://api.twitter.com/1.1/statuses/user_timeline.json?' st=st+'include_entities=true&screen_name='+username+'&count=1' header, response = client.request(st)