Create nanosim.py

Initial commit.