fixes to __init__ and sample. now py3 compliant