Removed repetition of code and checked for PEP 8 style editing
Checked for PEP 8 Styling
Editing
Merge remote-tracking branch 'origin/master'