Assignment-4 Simplifications

The policy creation logic can be simplified using pyretic policy composition operators and idiomatic python dictionary item loops. Similar readability improvements can be made to the switch table printing function and output file writer for grading.