Simplified latest patch in Python-legacy.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>