Add fallback implementation in case gmpy is missing
Same script works with or without gmpy
Merge branch 'luac-master'