python script for amazon with invalid keys