Improvements in Python mode and Yasinppet expansion

Signed-off-by: Zlatozar Zhelyazkov <zlatozar@gmail.com>