Bug Fix: to_python method repaired