Running the following simple code works just fine on my local machine running Python 3.7.3, but returns only object type None when running the same file on an AWS EC2 instan