Move basic.py to minimal.py
Better version without buffer overflow and better perf - Thanks @coderanger