Added two unit tests, Python code fixes
Authored by: artyom-beilis 2010-04-07
Parent: [r1127]
Child: [r1129]