1) Create a more dynamic algorithm to choose p and g variables. Ensure that g is primitive root of p and that p is always prime. 2) Implement in C and import into python for optimization.