Added maybeSome() method, fixed dart and python versions.