import os

from dotenv import load_dotenv, find_dotenv

load_dotenv(find_dotenv())

OPS_KEY = os.environ.get("OPS_KEY")
OPS_SECRET = os.environ.get("OPS_SECRET")
TWITTER_CONSUMER_ACCESS = os.environ['TWITTER_CONSUMER_ACCESS']
TWITTER_CONSUMER_SECRET = os.environ['TWITTER_CONSUMER_SECRET']
TWITTER_ACCESS = os.environ['TWITTER_ACCESS']
TWITTER_SECRET = os.environ['TWITTER_SECRET']

@@ -93,29 +93,25 @@
 = os.environ
-.get(
+%5B
 %22OPS_KEY%22)%0AO
@@ -107,17 +107,17 @@
 OPS_KEY%22
-)
+%5D
 %0AOPS_SEC
@@ -136,13 +136,9 @@
 iron
-.get(
+%5B
 %22OPS
@@ -145,17 +145,17 @@
 _SECRET%22
-)
+%5D
 %0ATWITTER

Access envvars using standard dictionary access isntead of get method to ensure missing vars cause an exception to be raised