Python script in EC2 in AWS not working 'ak':'nk'